# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=geoipgen
pkgver=0.4
pkgrel=11
pkgdesc='A country to IP addresses generator.'
url='http://code.google.com/p/geoipgen/'
groups=('blackarch' 'blackarch-misc')
license=('GPL')
depends=('ruby')
arch=('any')
source=("http://geoipgen.googlecode.com/files/$pkgname-$pkgver.tar.gz")
sha512sums=('001fdbb64c41155d4416a2bfe9e0a4a2fc346f8e')

package() {
  cd "$pkgname-$pkgver"

  install -Dm 755 $pkgname "$pkgdir/usr/bin/$pkgname"

  for f in README CHANGELOG TODO; do
    install -Dm 644 $f "$pkgdir/usr/share/doc/$pkgname/$f"
  done
}

